package com.ssy.lingxi.purchase.api.dto.request.online;

import com.ssy.lingxi.purchase.api.dto.request.EnclosureUrlsRequest;
import com.ssy.lingxi.purchase.api.dto.response.CountryAreaResponse;
import com.ssy.lingxi.purchase.api.dto.response.online.CountryArea;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *在线报名请求实体
 */
@Data
public class OnlineSignUpRequest {

    /**
     *竞价单ID
     */
    @NotNull(message = "竞价单ID不能为空")
    private Long biddingId;

    /**
     *电子邮箱
     */
    @NotEmpty(message = "电子邮箱不能为空")
    private String mail;

    /**
     *报名文件
     */
    @Valid
    private List<EnclosureUrlsRequest> enclosureUrls;

    /**
     * 联系电话
     */
    @NotEmpty(message = "联系电话不能为空")
    private String tel;

    /**
     * 联系电话前缀ID
     */
    @NotNull(message = "联系电话前缀ID不能为空")
    private Long telPrefix;

    /**
     * 联系人
     */
    @NotNull(message = "联系人不能为空")
    private String contacts;

    /**
     *联系地址
     */
    @NotEmpty(message = "联系地址不能为空")
    private String address;

    /**
     * 地址
     */
    @Valid
    @NotEmpty(message = "地址不能为空")
    private List<CountryAreaResponse> areas;

    /**
     * 报名地址
     */
    @Valid
    @NotNull(message = "报名地址不能为空")
    private CountryAreaResponse signUpAreas;
}
